package com.training.java.corejava.interfacedemo;

public class ComputerInterfaceDemo  {

	public static void main(String[] args)
	{
		Computers computer1 = new Laptop("Hp","Pavilion",22);
		Computers computer2 = new Tablet("Asus","vivoTab",7);
		Computers computer3 = new SmartPhone("Samsung","galaxy note 3",6);
		
		
		KindsOfComputer(computer1);
		KindsOfComputer(computer2);
		KindsOfComputer(computer3);
		
	}
	
	public static void KindsOfComputer(Computers computer)
	{
	
		computer.showInfo();
		computer.switchOn();
		computer.switchOff();
		computer.connectWiFi();
		System.out.println("\n");
		
	}

}
